package com.epfresh.views.dialog;

import android.content.Context;
import android.graphics.Color;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;

import com.epfresh.R;

/**
 * Created by wzh on 16-7-13.
 */
public class MoreMarketDialog extends BaseDialogView{

    public MoreMarketDialog(Context context) {
        super(context);

        init();
    }

    @Override
    public void initBefore() {
        setGravity(Gravity.TOP);
    }

    @Override
    protected void initAnim() {
        super.initAnim();
    }

    private void init() {

        View v = LayoutInflater.from(context).inflate(R.layout.dialog_more_market_layout, contentContainer);

        FrameLayout.LayoutParams lp = (FrameLayout.LayoutParams) rootView.getLayoutParams();
        lp.topMargin = context.getResources().getDimensionPixelSize(R.dimen.action_bar_height)
                +context.getResources().getDimensionPixelSize(R.dimen.home_top_nav_height);
//                +context.getResources().getDimensionPixelSize(R.dimen.line_large_width);
        setCancelable(true);

    }
}
